package cliente;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

public class Main {
	//Capturar o servico disponibilizdo no servidor
	public static void main(String[] args) throws MalformedURLException, RemoteException, NotBoundException {
		
		Mensageiro gerente = (Mensageiro) Naming.lookup("//localhost/msg/");		
		System.out.println(gerente.hello("SimaoFernandes"));
	}

}
